package com.micro.demo.entities;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@NoArgsConstructor  //自动生成无参构造
@Data
@Accessors(chain = true)
public class Dept implements Serializable{ //必须序列化

    private Long deptno;   //主键
    private String dname;   //部门名称
    private String db_source;//来自那个数据库，因为微服务架构可以

    public static void main(String[] args) {
        Dept dept = new Dept();

    }

}